/* import { Component } from "react";

class DemoA extends Component {
    render() {
        return (
            <h1>类组件</h1>
        )
    }
} */

function DemoB() {
    return (<h1>函数式组件</h1>)
}

export default DemoB